Package com.cisco.pt.ipc.sim.pdu.impl
Class PPPoeHeaderImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCDataImpl
com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
com.cisco.pt.ipc.sim.pdu.impl.PduImpl
com.cisco.pt.ipc.sim.pdu.impl.HeaderImpl
com.cisco.pt.ipc.sim.pdu.impl.PPPoeHeaderImpl
- All Implemented Interfaces:
IPCData,Header,Pdu,PPPoeHeader,Signal
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Byteprotected Stringprotected Shortprotected Shortprotected Byteprotected ByteFields inherited from class com.cisco.pt.ipc.sim.pdu.impl.HeaderImpl
payloadFields inherited from class com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
fieldNames, fieldTable, signalType, typeTable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidencodeTypeAndPayload(EncodedBuffer buffer) getCode()getFieldType(String fieldName) getType()voidpduRead(EncodedBuffer buffer) voidread(EncodedBuffer buffer) Reads this object from an EncodedBuffer of raw datavoidvoidsetIpSubnet(String ipSubnet) voidvoidsetSessionId(Short sessionId) voidvoidsetVersion(Byte version) Methods inherited from class com.cisco.pt.ipc.sim.pdu.impl.HeaderImpl
getPayload, setPayloadMethods inherited from class com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
getFieldValueMethods inherited from class com.cisco.pt.ipc.impl.IPCDataImpl
checkType, pduReadBoolean, pduReadByte, pduReadDouble, pduReadFloat, pduReadInt, pduReadIPAddress, pduReadIPCData, pduReadIPV6Address, pduReadLong, pduReadMACAddress, pduReadPair, pduReadQString, pduReadShort, pduReadString, pduReadUUID, pduReadVector, readBoolean, readByte, readDouble, readFloat, readInt, readIPAddress, readIPCData, readIPV6Address, readLong, readMACAddress, readPair, readQString, readShort, readString, readUUID, readVectorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.sim.pdu.Header
getPayload, setPayloadMethods inherited from interface com.cisco.pt.ipc.sim.pdu.Signal
getFieldValue
-
Field Details
-
version
-
type
-
code
-
sessionId
-
length
-
ipSubnet
-
-
Constructor Details
-
PPPoeHeaderImpl
public PPPoeHeaderImpl()
-
-
Method Details
-
getVersion
- Specified by:
getVersionin interfacePPPoeHeader- Returns:
- Byte Returns a Byte
-
setVersion
- Specified by:
setVersionin interfacePPPoeHeader- Parameters:
version- Takes in a parameter of version
-
getType
- Specified by:
getTypein interfacePPPoeHeader- Returns:
- Byte Returns a Byte
-
setType
- Specified by:
setTypein interfacePPPoeHeader- Parameters:
type- Takes in a parameter of type
-
getCode
- Specified by:
getCodein interfacePPPoeHeader- Returns:
- Byte Returns a Byte
-
setCode
- Specified by:
setCodein interfacePPPoeHeader- Parameters:
code- Takes in a parameter of code
-
getSessionId
- Specified by:
getSessionIdin interfacePPPoeHeader- Returns:
- Short Returns a Short
-
setSessionId
- Specified by:
setSessionIdin interfacePPPoeHeader- Parameters:
sessionId- Takes in a parameter of sessionId
-
getLength
- Specified by:
getLengthin interfacePPPoeHeader- Returns:
- Short Returns a Short
-
setLength
- Specified by:
setLengthin interfacePPPoeHeader- Parameters:
length- Takes in a parameter of length
-
getIpSubnet
- Specified by:
getIpSubnetin interfacePPPoeHeader- Returns:
- String Returns a String
-
setIpSubnet
- Specified by:
setIpSubnetin interfacePPPoeHeader- Parameters:
ipSubnet- Takes in a parameter of ipSubnet
-
getFieldType
- Overrides:
getFieldTypein classHeaderImpl
-
read
Reads this object from an EncodedBuffer of raw data- Specified by:
readin interfaceIPCData- Overrides:
readin classHeaderImpl- Parameters:
buffer- The EncodedBuffer that contains the raw data from which to construct this object
-
pduRead
- Specified by:
pduReadin interfaceSignal- Overrides:
pduReadin classHeaderImpl
-
getOrderedFieldNames
- Specified by:
getOrderedFieldNamesin interfaceSignal- Overrides:
getOrderedFieldNamesin classHeaderImpl
-
encodeTypeAndPayload
- Specified by:
encodeTypeAndPayloadin interfaceSignal- Overrides:
encodeTypeAndPayloadin classHeaderImpl
-